import "./formatting.js";
let FormatMixin = {
  data() {
    return {
      editor: null
    };
  },

  methods: {
    format() {
      this.editor.autoFormatRange(
        {
          line: 0,
          ch: 0
        },
        {
          line: this.editor.lineCount(),
          ch: null
        }
      );
    }
  }
};

export default FormatMixin;
